/*
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.


See LICENSE and AUTHORS for more information.
*/
#include "Identity.h"
#include <QDebug>

Identity::Identity(int id, QString nick, QString realname, QString awaymsg,
                   QString quitmsg, bool away, bool autoaway)
        : QObject() {
    this->id=id;
    this->nickname=nick;
    this->realname=realname;
    this->away=away;
    this->awaymsg=awaymsg;
    this->autoaway=autoaway;
    this->quitmsg=quitmsg;
}


QString Identity::getAwayMessage() {
    return this->awaymsg;
}

QString Identity::getQuitMessage() {
    return this->quitmsg;
}

QString Identity::getRealname() {
    return this->realname;
}

QString Identity::getNickname() {
    return this->nickname;
}

void Identity::sync() {
    qDebug() << "called sync() on Identity";
}

bool Identity::isAway() {
    return this->away;
}

bool Identity::isAutoaway() {
    return this->autoaway;
}

void Identity::setAway(bool value) {
    this->away = value;
}

void Identity::setAutoaway(bool value) {
    this->autoaway = value;
}
